using System.Web.Mvc;

namespace SmartLink.WebApi.Areas.Mobile
{
    public class MobileAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "Mobile";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            //context.MapHttpRoute(
            //    "MobileArea",
            //    "api/mobile/{controller}/{action}/{id}",
            //    new { area = "Mobile", action = "Index", id = System.Web.Http.RouteParameter.Optional }
            //);
         

            context.MapRoute(
                "Mobile",
                AreaName+"{controller}/{action}/{id}",
                new { action = "Index", id = UrlParameter.Optional }
            );
        }
    }
}